#include <iostream>
// #include "../simple/tabtenn0.h"
#include "rated.h"

int main(int argc, char const *argv[])
{
    using std::cout;
    using std::endl;

    TableTennisPlayer player("TableTennis", "player1", false);
    RatedPlayer rplayer(1100, "TableTennis", "player2", true);

    player.Name();
    if (player.HasTable()) cout << ": has a table\n";
    else cout << ": hasn't a table\n";

    rplayer.Name();
    cout << rplayer.Rating();
    if (rplayer.HasTable()) cout << ": has a table\n";
    else cout << ": hasn't a table\n";

    RatedPlayer rplayer2(1200, player);
    rplayer2.Name();
    cout << rplayer2.Rating();
    if (rplayer2.HasTable()) cout << ": has a table\n";
    else cout << ": hasn't a table\n";





    return 0;
}
